﻿using System;
using System.Collections.Generic;
using System.Text;
using BCMS.Settings;
using BCMS.FrontEnd.DataContract;

namespace BCMS.Forms.Report
{
    public class cpDetailExport
    {
        public string Serial { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime ExpireDate { get; set; }
        public decimal ParValue { get; set; }
        public string Status { get; set; }
        public string Note { get; set; }
        public string ReleaseKind { set; get; }
        public string ReleaseTarget { set; get; }
        public string ReleaseDetail { set; get; }
        public string ReleaseNote { set; get; }

        public cpDetailExport(){}

        public cpDetailExport(CouponUI item)
        {
            this.Serial = item.Serial;
            this.StartDate = item.StartDate;
            this.ExpireDate = item.ExpireDate;
            this.ParValue = item.ParValue;
            this.Status = Params.EXPIRED;
            this.Note = item.Note;
            this.ReleaseKind = item.ReleaseKind;
            this.ReleaseTarget = item.ReleaseTarget;
            this.ReleaseDetail = item.ReleaseDetail;
            this.ReleaseNote = item.ReleaseNote;
        }
        
    }
}
